import http from '../http'

// 测试：获取list的数据  get接口
export function getType(params: string | void) {
    return http.get('/yjr/shopTypeList', { params })
}

export function getShop(params: string | void) {
    return http.get('/yjr/shopList', { params })
}

export function getDetail(params: object) {
    return http.get('/yjr/detail', { params })
}

export function postZiFu(params: object) {
    return http.post('/zifu/pcpay', { params })
}

export function getStatic(id: object, num: number) {
    return http.post('/yjr/static', { id, num })
}

export function getAddr(params: void) {
    return http.get('/yjr/placeList', { params })
}

export function getAddrList(params: void) {
    return http.get('/yjr/addrList', { params })
}

export function postAdd(params: object) {
    return http.post('/yjr/addrAdd', { params })
}

export function EditDetail(params: object) {
    return http.get('/yjr/editDetail', { params })
}

export function postUpdate(params: object) {
    return http.post('/yjr/addrUpdate', { params })
}

export function detailStatic(params: object) {
    return http.post('/yjr/detailStatic', { params })
}

export function getAddrDel(params: object) {
    return http.post('/yjr/addrDel', { params })
}

export function getNoteList(params: object) {
    return http.post('/yjr/noteList', { params })
}

export function shopDetail(params: object) {
    return http.get('/yjr/shopDetail', { params })
}